<template>
  <ContentBlock v-bind="$attrs">
    <div class="data-block-container">
      <div class="num-container">
        <div class="num_main">{{ mainNum }}</div>
        <div class="num_division-line">/</div>
        <div class="num_sub">{{ subNum }}</div>
      </div>
      <div class="desc-text">{{ type }}</div>
    </div>
  </ContentBlock>
</template>

<script>
import ContentBlock from "@/components/ContentBlock/ContentBlock.vue";
export default {
  name: "DataBlock",
  props: {
    mainNum: {
      type: Number,
      default: 0
    },
    subNum: {
      type: Number,
      default: 0
    },
    type: {
      type: String,
      default: ""
    }
  },
  components: { ContentBlock },
  data() {
    return {};
  },
  methods: {}
};
</script>

<style lang="less" scoped>
.data-block-container {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

  .num-container {
    display: flex;
    align-items: flex-end;
    font-family: Chakra Petch Regular;
    font-weight: 500;

    .num_main {
      font-size: 2rem;
      color: #b0e0ff;
      line-height: 2rem;
    }

    .num_division-line {
      margin: 0 0.25rem;
      font-size: 1.1875rem;
      color: #fff;
      line-height: 1.4375rem;
    }

    .num_sub {
      font-size: 1.125rem;
      color: #ff744c;
      line-height: 1.375rem;
    }
  }

  .desc-text {
    margin-top: 0.625rem;
    font-size: 16px;
    font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
    font-weight: 500;
    color: #fff;
    line-height: 26px;
  }
}
</style>
